<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  </head>
  
  <body>
  <p><a href="categorySave.jsp">添加新分类</a></p>
  <hr>
  <table border="1">
  	<thead>
  		<tr>
  			<td>编号</td>
  			<td>分类名称</td>
  			<td></td>
  		</tr>
  	</thead>
  	<tbody>
  		<c:forEach items="${category }" var="c">
  		<tr>
  			<td>${c.id }</td>
  			<td>${c.name }</td>
  			<td><a href="CateDelete.action?id=${c.id }">删除</a></td>
  		</tr>
  		</c:forEach>
  	</tbody>
  </table>
  </body>
</html>
